﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Simple.EntityFrameworkCore;

namespace Simple.Data.Test
{
    public class TestDbcontext:AppDbContext
    {
        public TestDbcontext(string connectString):base(connectString)
        {

        }

        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            optionsBuilder.UseSqlServer(connectString);
            base.OnConfiguring(optionsBuilder);
        }
        public DbSet<SysUser> SysUser { get; set; }
        public DbSet<SysFunction> SysFunction { get; set; }
    }
}
